projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0ac533
)
[IA64] Fix security vulnerability
author
Alex Williamson
<alex.williamson@hp.com>
Tue, 15 Jan 2008 14:07:01 +0000
(07:07 -0700)
committer
Alex Williamson
<alex.williamson@hp.com>
Tue, 15 Jan 2008 14:07:01 +0000
(07:07 -0700)
DomU can map any other domain's memory.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen/arch/ia64/xen/dom0_ops.c
patch
|
blob
|
history
diff --git
a/xen/arch/ia64/xen/dom0_ops.c
b/xen/arch/ia64/xen/dom0_ops.c
index 438796c0cfe6978d1da9900de2cfdd14a4b5351f..4c97d0e294fd1cca1b210cd06d9b1bd7d4cad4a7 100644
(file)
--- a/
xen/arch/ia64/xen/dom0_ops.c
+++ b/
xen/arch/ia64/xen/dom0_ops.c
@@
-522,10
+522,14
@@
do_dom0vp_op(unsigned long cmd,
ret = dom0vp_zap_physmap(d, arg0, (unsigned int)arg1);
break;
case IA64_DOM0VP_add_physmap:
+ if (!IS_PRIV(d))
+ return -EPERM;
ret = dom0vp_add_physmap(d, arg0, arg1, (unsigned int)arg2,
(domid_t)arg3);
break;
case IA64_DOM0VP_add_physmap_with_gmfn:
+ if (!IS_PRIV(d))
+ return -EPERM;
ret = dom0vp_add_physmap_with_gmfn(d, arg0, arg1, (unsigned int)arg2,
(domid_t)arg3);
break;